import request from '@/utils/request'

// 查询泵组节点列表
export function listPumppoint(query) {
  return request({
    url: '/pump/pumppoint/list',
    method: 'get',
    params: query
  })
}

// 查询泵组节点详细
export function getPumppoint(id) {
  return request({
    url: '/pump/pumppoint/' + id,
    method: 'get'
  })
}

// 新增泵组节点
export function addPumppoint(data) {
  return request({
    url: '/pump/pumppoint',
    method: 'post',
    data: data
  })
}

// 修改泵组节点
export function updatePumppoint(data) {
  return request({
    url: '/pump/pumppoint',
    method: 'put',
    data: data
  })
}

// 删除泵组节点
export function delPumppoint(id) {
  return request({
    url: '/pump/pumppoint/' + id,
    method: 'delete'
  })
}
